home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re Tracker Coordinates.3 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.6 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Tracker Coordinates
  2. Sent:        6/6/96 9:56 AM
  3. Received:    6/6/96 10:11 AM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >Subject:  Tracker Coordinates               Time: 9:06 AM     Date:6/6/96
  9. >
  10. >As near as I can tell, the FW_CTracker::Track method is inconsistent in terms
  11. >of the mouse coordinates it passes in its call to BeginTracking and then to
  12. >ContinueTracking.
  13. >
  14. >In BeginTracking, the point passed in is in view _content_ coordinates.
  15. >Whereas in ContinueTracking the current location point passed in is in view
  16. >coordinates.
  17. >
  18. >Shouldn't both of them be in view coordinates?
  19.  
  20. I looked at the code and both are in view content coordinates. 
  21. BeginTracking is called with the a point converted using 
  22. FrameToViewContent. The point passed to ContinueTracking is also in view 
  23. Content coordinates. FW_GetMouseLocation calls ::GetMouse and then 
  24. converts the point to the logical coordinates of the current graphic 
  25. context (theGC.DeviceToLogical(..)). In this case the view content 
  26. coordinates.
  27.  
  28. FW_CTracker::Track is used in both ODFDraw and ODFContainer which are 
  29. both supporting scrolling. If there was a bug, the tracker would not be 
  30. working correctly in a scrolled view.
  31.  
  32. ........................................................................
  33.  Henri Lamiraux                                      lamiraux@apple.com
  34.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  35. ........................................................................
  36.  
  37.